package com.zdd.ehe.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-13
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 分页获取权限
     * @param page
     * @return
     */
    Page<Permission> getAllPermissionByPage(Page<Permission> page);

    /**
     * 添加权限
     * @param permission
     * @return
     */
    int addPermission(Permission permission);
}
